package com.ruoyi.web.sso.task;

import com.ruoyi.web.sso.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class MyCommandLineRunner implements CommandLineRunner {
    @Autowired
    private IRoleService roleService;
    @Override
    public void run(String... args) throws Exception{
        roleService.setRedisRole();
    }
}
